package com.zjw.zy.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import com.zjw.zy.bean.RecorderItem
import com.zjw.zy.bean.ToolIcon
import com.zjw.zy.coreui.fragment.holder.RecorderItemHolder
import com.zjw.zy.coreui.fragment.holder.ToolHolder

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/10/17 16:42
 * @description：
 */
class RecorderAdapter(listener: ItemListener<RecorderItemHolder>) :
    BaseRecyclerAdapter<RecorderItem, RecorderItemHolder>(listener) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecorderItemHolder {
        val itemView = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_recorder_item, parent, false)

        return RecorderItemHolder(itemView)
    }
}